<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            position: relative;
            width: 300px;
            height: 300px;
            border: 1px solid #ddd;

        }
        #box{
            width: 100px;
            height: 30px;
            border: 1px solid #ddd;
            position: absolute;
            bottom: 0;
            margin:0 auto;
        }
        #span{
            display: none;
        }
    </style>
</head>
<body>
    <div class="box">
        <div id="box">
            <span id="time" class="span">10</span>
            <span id="span"><input type="checkbox"></span>
            <span>同意</span>
        </div>
    </div>

    <script>
        function run(){
            var b = document.getElementById('span')
            var span = document.getElementsByClassName('span')[0]
            var s = document.getElementById('time')
            if(s.innerHTML == 0){
                span.style.display='none';
                b.style.display='inline-block'
                return false;
            }
            s.innerHTML = s.innerHTML * 1 -1
        }
        window.setInterval("run();",1000)
    </script>
</body>
</html>